<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#base" data-toggle="tab">基本资料</a></li>
            <li><a href="#visit" data-toggle="tab">回访记录</a></li>
            <li><a href="#record" data-toggle="tab">消费记录</a></li>
            <li><a href="#order" data-toggle="tab">课程订单</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="base">
                <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
                        <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                            {$row.nickname_text}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
                        <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                            {if $row.gender==0}
                            {:__('Gender 0')}
                            {elseif $row.gender==1}
                            {:__('Gender 1')}
                            {else/}
                            {:__('Gender 2')}
                            {/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
                        <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                            {$row.mobile}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="c-thumbs" class="control-label col-xs-12 col-sm-2">{:__('Thumbs')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <img src="{$row.avatar_text}"
                                onerror="this.src='/erp.php/ajax/icon?suffix=png';this.onerror=null;"
                                class="img-responsive row list-inline faupload-preview" style="width: 70px;">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            {if empty($row.email)}
                                暂无邮箱
                            {else/}
                            {$row.email}
                            {/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('Region')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            <!-- <input id="city" readonly type="text" data-toggle="city-picker" name="region" value="{$row.district}"> -->
                            {if $row.region.code==null}
                            {else/}
                            {$row.region.province}/{$row.region.city}/{$row.region.district}
                            {/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="price" class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            {$row.money}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="price" class="control-label col-xs-12 col-sm-2">{:__('Createtime')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            {$row.createtime|date="Y-m-d H:i:s",###}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('SourceName')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            {if empty($row.source.name)}
                                无
                            {else/}
                                {$row.source.name}
                            {/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Deal')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            {if $row.deal ==0}
                            {:__('Deal 0')}
                            {else/}
                            {:__('Deal 1')}
                            {/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Auth')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            {if $row.auth ==0}
                            {:__('Auth 0')}
                            {else/}
                            {:__('Auth 1')}
                            {/if}
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="price" class="control-label col-xs-12 col-sm-2">{:__('AdminName')}:</label>
                        <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                            {$row.admin.nickname}
                        </div>
                    </div>
                </form>
            </div>
            <div class="tab-pane fade" id="visit">
                <div class="widget-body no-padding">
                    <div id="VisitToolbar" class="toolbar">
                        {:build_toolbar('refresh,add,edit,del',[],'business/visit')}
                    </div>
                    <table id="VisitTable" class="table table-striped table-bordered table-hover table-nowrap"
                        data-operate-edit="{:$auth->check('business/visit/edit')}"
                        data-operate-del="{:$auth->check('business/visit/del')}" width="100%">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="record">
                <div class="widget-body no-padding">
                    <div id="RecordToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="RecordTable" class="table table-striped table-bordered table-hover table-nowrap">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="order">
                <div class="widget-body no-padding">
                    <div id="OrderToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="OrderTable" class="table table-striped table-bordered table-hover table-nowrap">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<style>
    a{
        list-style: none;
        color: white;
    }
</style>